home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group02b.txt / 000103_icon-group-sender_Thu Nov 7 08:10:46 2002.msg < prev    next >
Internet Message Format  |  2003-01-02  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id gA7F9Sw04688
  4.     for icon-group-addresses; Thu, 7 Nov 2002 08:09:28 -0700 (MST)
  5. Message-Id: <200211071509.gA7F9Sw04688@baskerville.CS.Arizona.EDU>
  6. To: "WebsiteWill" <websitewill@cox-internet.com>
  7. Cc: icon-group@cs.arizona.edu
  8. Subject: Re: Question about Icon
  9. From: Ed L Cashin <ecashin@uga.edu>
  10. Date: 06 Nov 2002 19:41:10 -0500
  11. User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: RO
  14.  
  15. "WebsiteWill" <websitewill@cox-internet.com> writes:
  16.  
  17. > Is there a way to have an Icon Program take as input a Scheme
  18. > program as a basic string, do some conversions to that string and
  19. > then output the new string to a Scheme interpreter/compiler and run
  20. > it then finally take the output from Scheme as a new set of input
  21. > into the same Icon Program?
  22.  
  23. I was interested in your question, so I looked up info on pipes in
  24. icon, but it looks like there is no easy way to launch another process
  25. inside of icon and then do both writing to and reading from the another
  26. process.  
  27.  
  28. (Perl has to jump through hoops to support this -- see the perlipc
  29. manpage.) 
  30.  
  31. Please anyone chime in if there is an easy way to launch a process in
  32. icon code and then do I/O to and from the process.
  33.  
  34. You could, of course, manipulate the string, write it to a file on
  35. disk, run the scheme interpreter from icon with popen or open with the
  36. pipe mode (so that the scheme interpreter is reading from the file),
  37. and then read the output from the scheme interpreter through the
  38. pipe's filehandle.
  39.  
  40. -- 
  41. --Ed L Cashin            |   PGP public key:
  42.   ecashin@uga.edu        |   http://noserose.net/e/pgp/
  43.  
  44.